import com.multithread.base.Scene;
import com.multithread.base.SceneFactory;
import org.junit.jupiter.api.Test;

/**
 * @author: hfxiang
 * @Description:
 * @date: 2022/7/22 11:23
 */
public class MultiThreadTester {

    /**
     * @author: hfxiang
     * @description: 第一种情况，一生产者一消费者，while轮询
     * @date: 2022/7/28 11:15
     * @param
     * @return
     */
    @Test
    public void test1(){
        SceneFactory sceneFactory = new SceneFactory();
        Scene scene =  sceneFactory.getScene("1to1While");
        scene.startWork(30);
    }
}
